Python 3.8.6rc1 (tags/v3.8.6rc1:08bd63d, Sep  7 2020, 23:10:23) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> data = [1,3,5,6,7]
>>> data[0]
1
>>> data[-2]
6
>>> range(6)
range(0, 6)
>>> list(range(6))
[0, 1, 2, 3, 4, 5]
>>> list(range(9,0,-2))
[9, 7, 5, 3, 1]
>>> a = "laoyou is a teacher"
>>> b =  list(a)
>>> b
['l', 'a', 'o', 'y', 'o', 'u', ' ', 'i', 's', ' ', 'a', ' ', 't', 'e', 'a', 'c', 'h', 'e', 'r']
>>> b[0:6]
['l', 'a', 'o', 'y', 'o', 'u']
>>> b[7,8]
Traceback (most recent call last):
  File "<pyshell#10>", line 1, in <module>
    b[7,8]
TypeError: list indices must be integers or slices, not tuple
>>> b[7;8]
SyntaxError: invalid syntax
>>> b[7:9]
['i', 's']
>>> b[-7:-1]
['t', 'e', 'a', 'c', 'h', 'e']
>>> b[-7:]
['t', 'e', 'a', 'c', 'h', 'e', 'r']
>>> b[:]
['l', 'a', 'o', 'y', 'o', 'u', ' ', 'i', 's', ' ', 'a', ' ', 't', 'e', 'a', 'c', 'h', 'e', 'r']
>>> b[3:]
['y', 'o', 'u', ' ', 'i', 's', ' ', 'a', ' ', 't', 'e', 'a', 'c', 'h', 'e', 'r']
>>> b[::2]
['l', 'o', 'o', ' ', 's', 'a', 't', 'a', 'h', 'r']
>>> b[::]
['l', 'a', 'o', 'y', 'o', 'u', ' ', 'i', 's', ' ', 'a', ' ', 't', 'e', 'a', 'c', 'h', 'e', 'r']
>>> b[19:3:-2]
['r', 'h', 'a', 't', 'a', 's', ' ', 'o']
>>> b[0:6]
['l', 'a', 'o', 'y', 'o', 'u']
>>> ''.join(b[0,6])
Traceback (most recent call last):
  File "<pyshell#21>", line 1, in <module>
    ''.join(b[0,6])
TypeError: list indices must be integers or slices, not tuple
>>> ''.join(b[0:6])
'laoyou'
>>> ''.join(b[-7:])
'teacher'
>>> ''.join(b[12:])
'teacher'
>>> b[::-1]
['r', 'e', 'h', 'c', 'a', 'e', 't', ' ', 'a', ' ', 's', 'i', ' ', 'u', 'o', 'y', 'o', 'a', 'l']
>>> b[-1::-1]
['r', 'e', 'h', 'c', 'a', 'e', 't', ' ', 'a', ' ', 's', 'i', ' ', 'u', 'o', 'y', 'o', 'a', 'l']
>>> 